package cn.roadtrip.utilmodule.util.enumpck;

/**
 * 旅游团绑定关键字、标签状态
 */
public enum Enum_TravelGroupBindKeyStats {
    //-；-
    ///状态。-；-；-
    Trash("Trash", "删除"),
    Top("Top", "推荐首页"),
    Down("Down", "下架");

    private String s;
    private String title;

    Enum_TravelGroupBindKeyStats(String s, String title) {
        this.s = s;
        this.title = title;
    }

    Enum_TravelGroupBindKeyStats(String s) {
        this.s = s;
        this.title = Enum_LoginPlat.parseCode(s).getTitle();
    }

    public String getTitle() {
        return this.title;
    }

    public String getCode() {
        return this.s;
    }

    public static final Enum_TravelGroupBindKeyStats parseCode(String code) {
        switch (code) {
            case "Trash":
                return Trash;
            case "Top":
                return Top;
            case "Down":
                return Down;
        }
        return null;
    }

    @Override
    public String toString() {
        return "(code:%s, title:%s)".formatted(this.s, this.title);
    }
}
